#ifndef CONN_HPP
#define CONN_HPP

#include <string>
#include <list>

namespace net
{
	using namespace std;

	class Conn
	{
		public:
			Conn();
			void setUrl(string newurl);
			void setPost(list<pair<string, string> > postData);
			string sendRequest();
			void reset();
		private:
			struct Cookie
			{
				std::string name;
				std::string value;
				std::string domain;
				std::string path;
				time_t expires;
				bool tail;
				bool secure;
			};
			curlpp::Forms formParts;
			string url;
	};

}
#endif // CONN_HPP
